package com.zx.oa.entity;

import java.util.Objects;

//专业类
public class Major {
    private int id;  //编号
    private String major; //专业名    Java、web、UI

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getMajor() {
        return major;
    }

    public void setMajor(String major) {
        this.major = major;
    }

    public Major() {
    }

    public Major(int id, String major) {
        this.id = id;
        this.major = major;
    }

    @Override
    public String toString() {
        return "Major{" +
                "id=" + id +
                ", major='" + major + '\'' +
                '}';
    }
}
